export tag=`date "+%Y-%m-%d-%s"`
root:
	export ROOT=gitee.com/fh_jz/go-job

build:
	echo "building go-job binary"
	mkdir -p bin/amd64
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64 .

release: build
	echo "building go-job container"
	docker build -t fhjz1105/go-job:${tag} .

push: release
	echo "pushing go-job/go-job"
	docker push fhjz1105/go-job:${tag}
